echo ""
echo ""
echo "更改权限，等一会儿啦"
echo ""
echo ""

chmod 755 -R /bin /home /mnt /run /srv /tmp /var /boot /etc /lib /opt /root /sbin /sys /usr
systemctl disable systemd-resolved.service
rm /etc/resolv.conf
mv resolv.conf /etc
echo "disable-scdaemon" > /etc/pacman.d/gnupg/gpg-agent.conf
pacman-key --init
pacman-key --populate archlinuxarm

echo "IMPORTANT"
echo ""
echo ""
echo "如果你使用的是Android 9及以上版本，你会遇到这个错误："
echo ""
echo "could not change the root directory (Function not implemented)"
echo ""
echo "也就是: 无法更改根目录（功能未实现）"
echo ""
echo "请忽略它，因为它不会做任何有害的事情"
echo ""
echo ""
echo "如果您遇到任何错误，请重新运行此脚本："
echo ""
echo "./additional.sh"